<style>
td {
    padding: 3px;
}
th {
    padding: 5px;
    text-align:left;
    background-color: #fff;
}

</style>

<button class="formButton" onclick="sprints.list.getItem(<?php echo $sprint['id'] ?>).edit()">edit</button>
<br/>
<br/>
<h3 style="display:inline;"><?php echo $sprint['name'] ?></h3> -
<?php echo GraduaDate::formatldm($sprint['start_date']) ?> | <?php echo GraduaDate::formatldm($sprint['end_date']) ?>
<br/>
<br/>
<table width="600">
    <tr>
        <th>
            ST
        </th>
        <th>
            Task
        </th>
        <th>
            Estimated
        </th>
        <th>
            Sprint
        </th>
        <th>
            Work in Progress
        </th>
        <th>
            Done
        </th>
    </tr>
    <?php foreach($sprintTasks['tasks'] as $task): ?>
    <tr>
        <td>
            <div class='state-<?php echo $task['state'] ?>'>&nbsp;</div>
        </td>
        <td>
        <a href='javascript:;' onclick='mainMenu.callShowTasks(<?php echo $task['id'] ?>)'><?php echo $task['name'] ?></a>
        </td>
        <td>
            <?php echo $task['estimated'] ?>
        </td>
        <td>
        <?php echo GraduaDate::formatldm($task['sprint_time']) ?>
        </td>
        <td>
        <?php echo GraduaDate::formatldm($task['work_in_progress_time']) ?>
        </td>
        <td>
        <?php echo GraduaDate::formatldm($task['done_time']) ?>
        </td>
    </tr>
    <?php endforeach; ?>
    <tr>
        <th colspan = 2>tasks:<?php echo $sprintTasks['countTasks'] ?></th>
        <th colspan = 2>Sprint: <?php echo $sprintTasks['sumSprint'] ?></th>
        <th colspan = 2>Done:   <?php echo $sprintTasks['sumDone'] ?>  </th>
    </tr>
</table>



